<?php

declare(strict_types=1);

namespace App\Robot\Crontab;

use App\CustHub\Constants\SendRecordStatusConstants;
use App\CustHub\Model\ChSendRecord;
use App\CustHub\Service\ChCrowSendingService;
use App\CustHub\Service\ChSendRecordService;
use App\CustHub\Service\CrowdInviteService;
use Hyperf\Di\Annotation\Inject;

/**
 * 群发生成发送主表，等待执行
 */
class BatchInviteCrontab
{
    #[Inject]
    protected CrowdInviteService $crowdInviteService;

    public function execute(): string
    {
        $this -> crowdInviteService -> loop();
        return 'send batch invite successfully';
    }
}